package denkmalVerwaltungstool.backend.tokenizer.token;

public class Token {

	private String content;
	private Token prev;
	private Token next;
	private int type;
	
	
	public Token(String content, Token prev, Token next) {
		super();
		this.content = content;
		this.prev = prev;
		this.next = next;
		this.type = Tokenlist.UNKNOWN;
	}

	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @return the prev
	 */
	public Token getPrev() {
		return prev;
	}

	/**
	 * @param prev the prev to set
	 */
	public void setPrev(Token prev) {
		this.prev = prev;
	}

	/**
	 * @return the next
	 */
	public Token getNext() {
		return next;
	}

	/**
	 * @param next the next to set
	 */
	public void setNext(Token next) {
		this.next = next;
	}
	
	public String toString(){
		return new String("Type: " + type + " content: " + this.content + "\n");
	}
	
}
